
package com.work.db.dao;

import org.hibernate.criterion.Restrictions;

import com.work.db.GenericDaoImpl;
import com.work.db.entity.Employer;

public class EmployerDaoImpl extends GenericDaoImpl<Employer, Long> implements EmployerDao {

	public EmployerDaoImpl(Class<Employer> type)
	{
		super(type);
	}

	@Override
	public Employer findByShortName(String shortName)
	{
		return findOneByCriteria(Restrictions.eq("shortName", shortName));
	}
}